/*
 * jAutomation: Portable input Automation 
 * Copyright (C) 2012 Dominik Hensler.  
 * http://code.google.com/p/jautomation
 * 
 * This Program uses JNativeHook by Alexander Barker:
 * JNativeHook: Global keyboard and mouse hooking for Java.
 * Copyright (C) 2006-2012 Alexander Barker.  All Rights Received.
 * http://code.google.com/p/jnativehook/
 *
 * 
 * This file is part of JAutomation.

 * JAutomation is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.

 * JAutomation is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.

 * You should have received a copy of the GNU General Public License
 * along with JAutomation.  If not, see <http://www.gnu.org/licenses/>.
 */
package org.jautomation.pdetect;

import java.awt.Point;
import java.util.Arrays;

/**
 *
 * @author Dominik Hensler
 */
public class WorkerContext {
      //public String colors[][];
      private int[] excludeRange={0,0};
      private int scanResolution=1;
      //public int delta; */
      private Point coordP=new Point();
      private int preservedPixel;
      private boolean firstRun;
      private int scanmode=0;
      private String[] commandArray;
      private double[] color;
      private String[][] _colors;
      
    public void setCommandArray(String[] commandArray) {
        this.commandArray=Arrays.copyOf(commandArray, commandArray.length);        
    }

    public String[] getCommandArray() {
        return this.commandArray;
    }

    /**
     * @return the scanmode
     */
    public int getScanmode() {
        return scanmode;
    }

    /**
     * @param scanmode the scanmode to set
     */
    public void setScanmode(int scanmode) {
        this.scanmode = scanmode;
    }

    /**
     * @return the firstRun
     */
    public boolean isFirstRun() {
        return firstRun;
    }

    /**
     * @param firstRun the firstRun to set
     */
    public void setFirstRun(boolean firstRun) {
        this.firstRun = firstRun;
    }

    /**
     * @return the preservedPixel
     */
    public int getPreservedPixel() {
        return preservedPixel;
    }

    /**
     * @param preservedPixel the preservedPixel to set
     */
    public void setPreservedPixel(int preservedPixel) {
        this.preservedPixel = preservedPixel;
    }

    /**
     * @return the coordP
     */
    public Point getCoordP() {
        return coordP;
    }

    /**
     * @param coordP the coordP to set
     */
    public void setCoordP(Point coordP) {
        this.coordP = coordP;
    }

    public void setColors(String[][] colors) {
        this._colors=colors;
    }
    
    public String[][] getColors() {
        return this._colors;
    }

    /**
     * @return the excludeRange
     */
    public int[] getExcludeRange() {
        return excludeRange;
    }

    /**
     * @param excludeRange the excludeRange to set
     */
    public void setExcludeRange(int[] excludeRange) {
        this.excludeRange = excludeRange;
    }

    /**
     * @return the scanResolution
     */
    public int getScanResolution() {
        return scanResolution;
    }

    /**
     * @param scanResolution the scanResolution to set
     */
    public void setScanResolution(int scanResolution) {
        this.scanResolution = scanResolution;
    }

    /**
     * @return the color
     */
    public double[] getColor() {
        return color;
    }

    /**
     * @param color the color to set
     */
    public void setColor(double[] color) {
        this.color = color;
    }

}
